//
// Created by 67678 on 2023/3/12.
//

#ifndef WEBSERVER_WEBSERVER_H
#define WEBSERVER_WEBSERVER_H

#include "nonCopyable.h"

namespace webServer{
class WebServer:util::NonCopyable{
public:
    static WebServer&getInstance(){
        static WebServer ws;
        return ws;
    }

    void init();

    void run();
    void close();
private:
    WebServer();
    ~WebServer();
    bool done_= false;
};
}
#endif //WEBSERVER_WEBSERVER_H
